<?php
require_once( '../system/smarty.inc' );
require_once( '../system/tdao/Class_T_PATTERN.php' );
require_once( '../system/login.inc.php' );
require_once( '../system/aoki_m.php' );
require_once( '../system/Class_PWD.php' );

Class_PWD::valid_auth(AOKI_AUTH_T_PATTERN,$login['staff_auth']);
if   ($login['staff_auth'] == 'G-6' || $login['staff_auth'] == 'G-7')  {
	header("Location: ./tpattern_shop.php");
	exit;
}

$dao = new Class_T_PATTERN;
$forms = $_GET;

//$wherearr =  array();
if ( isset( $forms['id'] ) &&  ( !empty( $forms['id'] ) ) ){
	//$wherearr[] = sprintf(" c.block_cd =  '%s' ",  $forms['block_cd'] );
	$data   = $dao->getinfo($forms['id'], $forms['pre']);	
	$data["aoki_compete"] = $aoki_compete_sort[$data["aoki_compete"]];
} 

if( isset($data) )      $smarty->assign('data', $data);


$smarty->display('tpattern_info.html');

?>